<template>
  <view class="module-container">
    <view class="module-header">
      <text class="module-title">模块1</text>
      <text class="module-subtitle">探索精彩内容</text>
    </view>
    
    <view class="module-content">
      <view class="content-card">
        <image src="/static/logo.png" class="card-image" mode="aspectFit"></image>
        <text class="card-title">欢迎来到模块1</text>
        <text class="card-desc">这里提供了丰富多样的内容供您探索。您可以浏览最新的视频、查看热门推荐，发现更多精彩内容。</text>
        <button class="card-button" @click="exploreMore">立即探索</button>
      </view>
      
      <view class="features-list">
        <view class="feature-item">
          <view class="feature-icon">
            <image src="/static/icons/module1.png" mode="aspectFit"></image>
          </view>
          <text class="feature-text">浏览最新视频</text>
        </view>
        <view class="feature-item">
          <view class="feature-icon">
            <image src="/static/icons/module1.png" mode="aspectFit"></image>
          </view>
          <text class="feature-text">查看热门推荐</text>
        </view>
        <view class="feature-item">
          <view class="feature-icon">
            <image src="/static/icons/module1.png" mode="aspectFit"></image>
          </view>
          <text class="feature-text">发现精彩内容</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      // 可以在这里添加需要的数据
    }
  },
  onLoad() {
    // 页面加载时的逻辑
  },
  methods: {
    exploreMore() {
      // 探索更多内容的逻辑
      uni.showToast({
        title: '探索更多功能即将上线',
        icon: 'none',
        duration: 2000
      })
    }
  }
}
</script>

<style scoped>
.module-container {
  padding: 20rpx;
  background: #f8f8f8;
  min-height: 100vh;
}

.module-header {
  padding: 60rpx 20rpx 40rpx;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20rpx 20rpx 0 0;
  color: #fff;
}

.module-title {
  font-size: 48rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
  display: block;
}

.module-subtitle {
  font-size: 28rpx;
  opacity: 0.9;
}

.module-content {
  background: #fff;
  border-radius: 0 0 20rpx 20rpx;
  padding: 40rpx 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.content-card {
  text-align: center;
  margin-bottom: 60rpx;
}

.card-image {
  width: 160rpx;
  height: 160rpx;
  margin: 0 auto 30rpx;
}

.card-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 20rpx;
  display: block;
}

.card-desc {
  font-size: 28rpx;
  color: #666;
  line-height: 40rpx;
  margin-bottom: 30rpx;
  display: block;
}

.card-button {
  width: 60%;
  height: 90rpx;
  line-height: 90rpx;
  font-size: 32rpx;
  color: #fff;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 45rpx;
  border: none;
}

.card-button:active {
  opacity: 0.9;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 30rpx;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 20rpx;
  background: #f8f8f8;
  border-radius: 10rpx;
}

.feature-icon {
  width: 60rpx;
  height: 60rpx;
  background: #fff;
  border-radius: 10rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.feature-icon image {
  width: 40rpx;
  height: 40rpx;
}

.feature-text {
  font-size: 28rpx;
  color: #333;
}
</style>